<ion-header>
  <ion-navbar>
    <ion-title>登录</ion-title>
  </ion-navbar>
</ion-header>

<ion-content padding>
    <form #loginForm="ngForm">
  <ion-list inset>
    <ion-item>
      <ion-label floating>账号</ion-label>
      <ion-input type="text" name="username" [(ngModel)]="username" required></ion-input>
    </ion-item>

    <ion-item>
      <ion-label floating>密码</ion-label>
      <ion-input type="password" name="password" [(ngModel)]="password" required></ion-input>
    </ion-item>
  </ion-list>
  <div padding>
    <button ion-button block [disabled]="!loginForm.form.valid"  (click)="doLogin(loginForm)" type="submit">登录</button>
  </div>
    </form>
  <div padding>
    <button ion-button outline class="left-float">新用户注册</button>
    <button ion-button outline class="right-float">忘记密码</button>
  </div>
</ion-content>
